package net.xiduth.game.player.dialogues.towns.burthope;


import net.xiduth.game.player.dialogues.Dialogue;


/**
 * 
 * @Author Chaz - Jul 14, 2013
 * 
 * Eadburg the cooks dialogue.
 */
public class Eadburg extends Dialogue {


    private int npcId;
    
    @Override
    public void start() {
        npcId = (Integer) parameters[0];
        sendPlayerDialogue(9827, "Hello there what's in the pot?");
    }


    @Override
    public void run(int interfaceId, int componentId) {
        switch (stage) {
        case -1:
            stage = 0;
            sendNPCDialogue(npcId, 9827,
                    "The stew for the servants main meal.");
            break;
        case 0:
            stage = 1;
            sendPlayerDialogue(9827,
                    "Can i have some?");
            break;
        case 1:
            stage = 2;
            sendNPCDialogue(
                    npcId,
                    9827,
                    "Well not unless you become a servant, there's a war going " +
                    "on you know so food is a scare.");
            break;
        case 2:
            stage = 3;
            sendPlayerDialogue(9827,
                    "Good point I should probably leave you to it then.");
            break;
        case 3:
            stage = 4;
            sendNPCDialogue(npcId, 9827,
                    "Alright, bye then.");
            break;
        case 4:
            default:
                end();
                break;
        }
    }


    @Override
    public void finish() {
        // TODO Auto-generated method stub
        
    }


}